package models

type AddressBook struct {
	Id                int              `gorm:"primary_key"`
	Name              string           `gorm:"type:varchar(50)" description:"姓名"`
	Phone             string           `gorm:"type:varchar(50)" description:"电话"`
	Level             string           `gorm:"type:varchar(50)" description:"职务"`
	AddressBookTypeId int              `gorm:"index" description:"分类id"`
	AddressBookType   *AddressBookType `gorm:"ForeignKey:AddressBookTypeId"`
}

type AddressBookType struct {
	Id   int    `gorm:"primary_key"`
	Name string `gorm:"type:varchar(255)" description:"所属队伍分类名称"`
}
